﻿
namespace WXWorkSvc.Common.Data;
[EntityTypeConfiguration(typeof(TCorpConfig))]
public class TCorp
{
    [StringLength(32)]
    public string Id { get; set; } = default!;
    [Display(Name = "单位")]
    public string Name { get; set; } = default!;
    [Display(Name = "授权")]
    public bool IsAuth { get; set; }
    [Display(Name = "日期")]
    public DateTime Dt { get; set; }
    [Display(Name = "扩展Id")]
    public int ExtId { get; set; }
}

public class TCorpConfig : IEntityTypeConfiguration<TCorp>
{
    public void Configure(EntityTypeBuilder<TCorp> builder)
    {
        builder.Property(ii => ii.ExtId).UseIdentityColumn(10000, 1);
    }
}

